package com.night.attendance.feign;

import com.night.common.entity.ResultVo;
import com.night.common.entity.student.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Dark-Morning
 * 2022/10/25 19:05
 */
@FeignClient("administration")
@RequestMapping("/api/v1/courseManager")
public interface CourseManagerFeign {
    @PostMapping("/getStudentIdByTeacherId/{courseManagerId}")
    ResultVo<List<Student>> getAllStudentId(@PathVariable("courseManagerId") int courseManagerId);
}
